﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Excel;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptDoanhThuTheoKhachHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("AdvNhanVien")]
        private ADVObjects _AdvNhanVien;
        [AccessedThroughProperty("CboHienThi")]
        private ComboBox _CboHienThi;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CmdExel")]
        private System.Windows.Forms.Button _CmdExel;
        [AccessedThroughProperty("CmdLoad")]
        private System.Windows.Forms.Button _CmdLoad;
        [AccessedThroughProperty("Label1")]
        private System.Windows.Forms.Label _Label1;
        [AccessedThroughProperty("Label11")]
        private System.Windows.Forms.Label _Label11;
        [AccessedThroughProperty("Label13")]
        private System.Windows.Forms.Label _Label13;
        [AccessedThroughProperty("Label16")]
        private System.Windows.Forms.Label _Label16;
        [AccessedThroughProperty("Label2")]
        private System.Windows.Forms.Label _Label2;
        [AccessedThroughProperty("Label23")]
        private System.Windows.Forms.Label _Label23;
        [AccessedThroughProperty("Label3")]
        private System.Windows.Forms.Label _Label3;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("Panel3")]
        private Panel _Panel3;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtTongThanhToanNT")]
        private C1NumericEdit _TxtTongThanhToanNT;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        [AccessedThroughProperty("VSListTheoHangHoa")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListTheoHangHoa;
        [AccessedThroughProperty("VSListTongHop")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListTongHop;
        private IContainer components;
        private bool IsLoaded;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;

        public Frm_RptDoanhThuTheoKhachHang()
        {
            base.Load += new EventHandler(this.Frm_RptDoanhThuChiTiet_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.IsLoaded = false;
            this.InitializeComponent();
        }

        private void CboHienThi_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.CboHienThi.SelectedIndex)
            {
                case 0:
                    this.VSlist.Visible = true;
                    this.VSlist.Dock = DockStyle.Fill;
                    this.VSListTheoHangHoa.Visible = false;
                    this.VSListTongHop.Visible = false;
                    if (this.IsLoaded)
                    {
                        this.LoadDataTheoHoaDon();
                    }
                    break;

                case 1:
                    this.VSListTheoHangHoa.Visible = true;
                    this.VSListTheoHangHoa.Dock = DockStyle.Fill;
                    this.VSlist.Visible = false;
                    this.VSListTongHop.Visible = false;
                    if (this.IsLoaded)
                    {
                        this.LoadDataTheoHangHoa();
                    }
                    break;

                case 2:
                    this.VSListTongHop.Visible = true;
                    this.VSListTongHop.Dock = DockStyle.Fill;
                    this.VSListTheoHangHoa.Visible = false;
                    this.VSlist.Visible = false;
                    if (this.IsLoaded)
                    {
                        this.LoadDataTongHop();
                    }
                    break;
            }
        }

        private void CmdExel_Click(object sender, EventArgs e)
        {
            switch (this.CboHienThi.SelectedIndex)
            {
                case 0:
                    this.ExportTheoHoaDon();
                    break;

                case 1:
                    this.ExportTheoMatHang();
                    break;

                case 2:
                    this.ExportTheoKhachHang();
                    break;
            }
        }

        private void CmdLoad_Click(object sender, EventArgs e)
        {
            switch (this.CboHienThi.SelectedIndex)
            {
                case 0:
                    this.LoadDataTheoHoaDon();
                    break;

                case 1:
                    this.LoadDataTheoHangHoa();
                    break;

                case 2:
                    this.LoadDataTongHop();
                    break;
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public void ExportTheoHoaDon()
        {
            try
            {
                SaveFileDialog dialog = new SaveFileDialog {
                    Filter = "Excel Files|*.xls",
                    Title = "Save an Excel file"
                };
                dialog.ShowDialog();
                if (dialog.FileName != "")
                {
                    this.VSlist.SaveExcel(dialog.FileName, "DoanhThu", FileFlags.IncludeFixedCells);
                    Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Workbooks.Open(dialog.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
                    application.Visible = true;
                }
            }
            catch (COMException exception1)
            {
                ProjectData.SetProjectError(exception1);
                COMException exception = exception1;
                MessageBox.Show(exception.Message);
                ProjectData.ClearProjectError();
            }
            catch (Exception exception3)
            {
                ProjectData.SetProjectError(exception3);
                Exception exception2 = exception3;
                MessageBox.Show(exception2.Message);
                ProjectData.ClearProjectError();
            }
        }

        public void ExportTheoKhachHang()
        {
            try
            {
                SaveFileDialog dialog = new SaveFileDialog {
                    Filter = "Excel Files|*.xls",
                    Title = "Save an Excel file"
                };
                dialog.ShowDialog();
                if (dialog.FileName != "")
                {
                    this.VSListTongHop.SaveExcel(dialog.FileName, "DoanhThu", FileFlags.IncludeFixedCells);
                    Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Workbooks.Open(dialog.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
                    application.Visible = true;
                }
            }
            catch (COMException exception1)
            {
                ProjectData.SetProjectError(exception1);
                COMException exception = exception1;
                MessageBox.Show(exception.Message);
                ProjectData.ClearProjectError();
            }
            catch (Exception exception3)
            {
                ProjectData.SetProjectError(exception3);
                Exception exception2 = exception3;
                MessageBox.Show(exception2.Message);
                ProjectData.ClearProjectError();
            }
        }

        public void ExportTheoMatHang()
        {
            try
            {
                SaveFileDialog dialog = new SaveFileDialog {
                    Filter = "Excel Files|*.xls",
                    Title = "Save an Excel file"
                };
                dialog.ShowDialog();
                if (dialog.FileName != "")
                {
                    this.VSListTheoHangHoa.SaveExcel(dialog.FileName, "DoanhThu", FileFlags.IncludeFixedCells);
                    Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Workbooks.Open(dialog.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
                    application.Visible = true;
                }
            }
            catch (COMException exception1)
            {
                ProjectData.SetProjectError(exception1);
                COMException exception = exception1;
                MessageBox.Show(exception.Message);
                ProjectData.ClearProjectError();
            }
            catch (Exception exception3)
            {
                ProjectData.SetProjectError(exception3);
                Exception exception2 = exception3;
                MessageBox.Show(exception2.Message);
                ProjectData.ClearProjectError();
            }
        }

        private void Frm_RptDoanhThuChiTiet_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, true, "", "");
                LVYModule.advFormatNumber(this.TxtTongThanhToanNT, modGeneral.H_FORMATNUMBER);
                this.CboHienThi.Items.Clear();
                this.CboHienThi.Items.Add(modGeneral.Tranlated("Tổng hợp h\x00f3a đơn", ""));
                this.CboHienThi.Items.Add(modGeneral.Tranlated("Chi tiết sản phẩm", ""));
                this.CboHienThi.Items.Add(modGeneral.Tranlated("Tổng hợp theo kh\x00e1ch h\x00e0ng", ""));
                this.CboHienThi.SelectedIndex = 2;
                this.IsLoaded = true;
                if (modGeneral.H_GIOIHANDULIEU)
                {
                    this.AdvNhanVien.Value = modGeneral.H_USERID;
                    this.AdvNhanVien.ReadOnly = true;
                }
                else
                {
                    this.AdvNhanVien.Value = "";
                    this.AdvNhanVien.ReadOnly = false;
                }
                this.LoadDataTheoHoaDon();
            }
        }

        public System.Data.DataTable GetDataTheoHangHoa()
        {
            System.Data.DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[7];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtTuNgay.Text));
                commandParameters[1] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, LVYModule.Date2Char(this.TxtDenNgay.Text));
                commandParameters[2] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, modGeneral.H_CLIENT);
                commandParameters[3] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                commandParameters[4] = DBHelper.createParameter("@KhoaKhachHang", DbType.Int64, ParameterDirection.Input, this.AdvKhachHang.Value);
                commandParameters[5] = DBHelper.createParameter("@KhoaNhanVien", DbType.Int64, ParameterDirection.Input, this.AdvNhanVien.Value);
                commandParameters[6] = DBHelper.createParameter("@HienThi", DbType.Double, ParameterDirection.Input, this.CboHienThi.SelectedIndex);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "BH_BC_DoanhThuTheoKhachHang", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public object GetDataTheoHoaDon(string strLanguage = "VIET")
        {
            string str2 = "";
            string str3 = "";
            if (this.AdvKhachHang.Value.Trim() != "")
            {
                str2 = str2 + " AND HD.KhoaDoiTuong = '" + this.AdvKhachHang.Value + "'";
                str3 = str3 + " AND NK.KhoaDoiTuong = '" + this.AdvKhachHang.Value + "'";
            }
            if (this.AdvNhanVien.Value.Trim() != "")
            {
                str2 = str2 + " AND HD.KhoaNhanVienBanHang = '" + this.AdvNhanVien.Value + "'";
                str3 = str3 + " AND NK.KhoaNhanVien = '" + this.AdvNhanVien.Value + "'";
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() != "")
            {
                str2 = str2 + " AND Rtrim(HD.LoaiTien) = '" + this.CboLoaiTien.SelectedValue.ToString().Trim() + "'";
                str3 = str3 + " AND Rtrim(NK.LoaiTien) = '" + this.CboLoaiTien.SelectedValue.ToString().Trim() + "'";
            }
            string commandText = " SELECT KH.Ten" + modGeneral.H_LANGUAGE + " As KhachHang, dbo.Char2Date(HD.NgayChungTu) As Ngay,  HD.SoChungTu, HD.SoHoaDon, NV.Ten" + modGeneral.H_LANGUAGE + " As KinhDoanh, HD.LoaiTien,  HD.TyGia, HD.TienHangNT As TienHang, HD.TienChietKhauNT as ChietKhau, HD.TienThueVATNT as TienThue,  SUM(IsNull(CO.SoTienHoaHongNT,0)) As HoaHong FROM ST_XuatKho HD  LEFT JOIN DM_DoiTuong KH ON HD.KhoaDoiTuong = KH.Khoa  LEFT JOIN DM_DoiTuong NV ON HD.KhoaNhanVienBanHang = NV.Khoa LEFT JOIN ST_HoaHong CO ON HD.Khoa = CO.KhoaPhieuXuat  WHERE HD.LoaiChungTu = 'XB' AND ( HD.NgayChungTu BETWEEN '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' AND '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "' AND HD.GhiSo = 1)" + str2 + " GROUP BY KH.Ten" + modGeneral.H_LANGUAGE + " , HD.NgayChungTu, HD.SoChungTu, HD.SoHoaDon, NV.Ten" + modGeneral.H_LANGUAGE + ", HD.LoaiTien,  HD.TyGia, HD.TienHangNT, HD.TienChietKhauNT, HD.TienThueVATNT  UNION ALL  SELECT KH.TenViet As KhachHang, dbo.Char2Date(NK.NgayChungTu) As Ngay, NK.SoChungTu, '' As SoHoaDon, NV.TenViet As NhanVien, NK.LoaiTien,  NK.TyGia, - NK.TienHangNT As TienHang, -NK.TienChietKhauNT as ChietKhau, -NK.TienThueVATNT as TienThue,  0 As HoaHong  FROM ST_NhapKho NK  LEFT JOIN DM_DoiTuong KH ON NK.KhoaDoiTuong = KH.Khoa  LEFT JOIN DM_DoiTuong NV ON NK.KhoaNhanVien = NV.Khoa  WHERE NK.NguonNhap = 'TH' And ( NK.NgayChungTu BETWEEN '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' AND '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "')" + str3 + " GROUP BY KH.TenViet , NK.NgayChungTu, NK.SoChungTu, NV.TenViet, NK.LoaiTien,  NK.TyGia, NK.TienHangNT, NK.TienChietKhauNT, NK.TienThueVATNT  ORDER BY 1, 2";
            return DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptDoanhThuTheoKhachHang));
            this.Panel1 = new Panel();
            this.CboHienThi = new ComboBox();
            this.Label3 = new System.Windows.Forms.Label();
            this.CmdExel = new System.Windows.Forms.Button();
            this.CmdLoad = new System.Windows.Forms.Button();
            this.CboLoaiTien = new ComboBox();
            this.Label11 = new System.Windows.Forms.Label();
            this.Label2 = new System.Windows.Forms.Label();
            this.AdvNhanVien = new ADVObjects();
            this.Label16 = new System.Windows.Forms.Label();
            this.AdvKhachHang = new ADVObjects();
            this.Label1 = new System.Windows.Forms.Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label13 = new System.Windows.Forms.Label();
            this.TxtTuNgay = new DateTimePicker();
            this.Panel3 = new Panel();
            this.TxtTongThanhToanNT = new C1NumericEdit();
            this.Label23 = new System.Windows.Forms.Label();
            this.Panel2 = new Panel();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.VSListTheoHangHoa = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.VSListTongHop = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel1.SuspendLayout();
            this.Panel3.SuspendLayout();
            ((ISupportInitialize) this.TxtTongThanhToanNT).BeginInit();
            this.Panel2.SuspendLayout();
            this.VSlist.BeginInit();
            this.VSListTheoHangHoa.BeginInit();
            this.VSListTongHop.BeginInit();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CboHienThi);
            this.Panel1.Controls.Add(this.Label3);
            this.Panel1.Controls.Add(this.CmdExel);
            this.Panel1.Controls.Add(this.CmdLoad);
            this.Panel1.Controls.Add(this.CboLoaiTien);
            this.Panel1.Controls.Add(this.Label11);
            this.Panel1.Controls.Add(this.Label2);
            this.Panel1.Controls.Add(this.AdvNhanVien);
            this.Panel1.Controls.Add(this.Label16);
            this.Panel1.Controls.Add(this.AdvKhachHang);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.TxtDenNgay);
            this.Panel1.Controls.Add(this.Label13);
            this.Panel1.Controls.Add(this.TxtTuNgay);
            this.Panel1.Dock = DockStyle.Top;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(0x3ba, 0x2d);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x48;
            this.CboHienThi.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboHienThi.FormattingEnabled = true;
            point = new System.Drawing.Point(0x2ed, 20);
            this.CboHienThi.Location = point;
            this.CboHienThi.Name = "CboHienThi";
            size = new Size(0x93, 0x15);
            this.CboHienThi.Size = size;
            this.CboHienThi.TabIndex = 0x80;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x2eb, 5);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x2b, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x7f;
            this.Label3.Text = "Hiển thị";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.CmdExel.Image = (Image) manager.GetObject("CmdExel.Image");
            point = new System.Drawing.Point(0x39c, 0x13);
            this.CmdExel.Location = point;
            this.CmdExel.Name = "CmdExel";
            size = new Size(0x1a, 0x18);
            this.CmdExel.Size = size;
            this.CmdExel.TabIndex = 0x7e;
            this.CmdExel.UseVisualStyleBackColor = true;
            this.CmdLoad.BackgroundImage = ACCOUNTING.My.Resources.Resources.view;
            this.CmdLoad.BackgroundImageLayout = ImageLayout.Center;
            point = new System.Drawing.Point(0x382, 0x13);
            this.CmdLoad.Location = point;
            this.CmdLoad.Name = "CmdLoad";
            size = new Size(0x1a, 0x18);
            this.CmdLoad.Size = size;
            this.CmdLoad.TabIndex = 0x7d;
            this.CmdLoad.UseVisualStyleBackColor = true;
            this.CboLoaiTien.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new System.Drawing.Point(0x2a2, 20);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x48, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 0x7c;
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x2a0, 5);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x7b;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x1ac, 4);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x3d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x7a;
            this.Label2.Text = "Kinh doanh";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            this.AdvNhanVien.Conditions = "";
            this.AdvNhanVien.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new System.Drawing.Point(0x1af, 20);
            this.AdvNhanVien.Location = point;
            this.AdvNhanVien.Name = "AdvNhanVien";
            this.AdvNhanVien.ReadOnly = false;
            size = new Size(0xee, 20);
            this.AdvNhanVien.Size = size;
            this.AdvNhanVien.TabIndex = 0x79;
            this.AdvNhanVien.UpperText = true;
            this.AdvNhanVien.Value = "";
            this.AdvNhanVien.WidthCode = 80;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0xac, 4);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x72;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.AdvKhachHang.Conditions = "";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new System.Drawing.Point(0xaf, 20);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = false;
            size = new Size(0xff, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 0x71;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 80;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new System.Drawing.Point(0x5b, 4);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x35, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x3f;
            this.Label1.Text = "Đến ng\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new System.Drawing.Point(90, 20);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x53, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x3e;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new System.Drawing.Point(4, 4);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x3d;
            this.Label13.Text = "Từ ng\x00e0y";
            this.TxtTuNgay.Format = DateTimePickerFormat.Custom;
            point = new System.Drawing.Point(5, 20);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x53, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 60;
            this.Panel3.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel3.BackgroundImageLayout = ImageLayout.Stretch;
            this.Panel3.Controls.Add(this.TxtTongThanhToanNT);
            this.Panel3.Controls.Add(this.Label23);
            this.Panel3.Dock = DockStyle.Right;
            point = new System.Drawing.Point(0x2ab, 0);
            this.Panel3.Location = point;
            this.Panel3.Name = "Panel3";
            size = new Size(0x10f, 30);
            this.Panel3.Size = size;
            this.Panel3.TabIndex = 0;
            this.TxtTongThanhToanNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongThanhToanNT.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.5f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.TxtTongThanhToanNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new System.Drawing.Point(0x74, 5);
            this.TxtTongThanhToanNT.Location = point;
            this.TxtTongThanhToanNT.Name = "TxtTongThanhToanNT";
            Padding padding = new Padding(1);
            this.TxtTongThanhToanNT.Padding = padding;
            this.TxtTongThanhToanNT.ReadOnly = true;
            size = new Size(0x8b, 20);
            this.TxtTongThanhToanNT.Size = size;
            this.TxtTongThanhToanNT.TabIndex = 0x8b;
            this.TxtTongThanhToanNT.Tag = null;
            this.TxtTongThanhToanNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongThanhToanNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongThanhToanNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThanhToanNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label23.AutoSize = true;
            this.Label23.BackColor = Color.Transparent;
            this.Label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new System.Drawing.Point(0x1f, 9);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x44, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0x8a;
            this.Label23.Text = "Tổng cộng";
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.BackgroundImageLayout = ImageLayout.Stretch;
            this.Panel2.Controls.Add(this.Panel3);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new System.Drawing.Point(0, 0x242);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x3ba, 30);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x4a;
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Top;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new System.Drawing.Point(0, 0x2d);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x3ba, 0xb0);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x49;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.VSListTheoHangHoa.AllowEditing = false;
            this.VSListTheoHangHoa.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSListTheoHangHoa.ColumnInfo = manager.GetString("VSListTheoHangHoa.ColumnInfo");
            this.VSListTheoHangHoa.Dock = DockStyle.Top;
            this.VSListTheoHangHoa.ExtendLastCol = true;
            this.VSListTheoHangHoa.FocusRect = FocusRectEnum.None;
            this.VSListTheoHangHoa.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new System.Drawing.Point(0, 0xdd);
            this.VSListTheoHangHoa.Location = point;
            this.VSListTheoHangHoa.Name = "VSListTheoHangHoa";
            this.VSListTheoHangHoa.Rows.Count = 1;
            this.VSListTheoHangHoa.Rows.DefaultSize = 0x11;
            this.VSListTheoHangHoa.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x3ba, 0xaf);
            this.VSListTheoHangHoa.Size = size;
            this.VSListTheoHangHoa.StyleInfo = manager.GetString("VSListTheoHangHoa.StyleInfo");
            this.VSListTheoHangHoa.TabIndex = 0x4b;
            this.VSListTheoHangHoa.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.VSListTongHop.AllowEditing = false;
            this.VSListTongHop.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSListTongHop.ColumnInfo = manager.GetString("VSListTongHop.ColumnInfo");
            this.VSListTongHop.Dock = DockStyle.Top;
            this.VSListTongHop.ExtendLastCol = true;
            this.VSListTongHop.FocusRect = FocusRectEnum.None;
            this.VSListTongHop.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new System.Drawing.Point(0, 0x18c);
            this.VSListTongHop.Location = point;
            this.VSListTongHop.Name = "VSListTongHop";
            this.VSListTongHop.Rows.Count = 1;
            this.VSListTongHop.Rows.DefaultSize = 0x11;
            this.VSListTongHop.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x3ba, 0xaf);
            this.VSListTongHop.Size = size;
            this.VSListTongHop.StyleInfo = manager.GetString("VSListTongHop.StyleInfo");
            this.VSListTongHop.TabIndex = 0x4c;
            this.VSListTongHop.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x3ba, 0x260);
            this.ClientSize = size;
            this.Controls.Add(this.VSListTongHop);
            this.Controls.Add(this.VSListTheoHangHoa);
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptDoanhThuTheoKhachHang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-BH18 ";
            this.Text = "DOANH THU THEO KHACH HANG";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.Panel3.ResumeLayout(false);
            this.Panel3.PerformLayout();
            ((ISupportInitialize) this.TxtTongThanhToanNT).EndInit();
            this.Panel2.ResumeLayout(false);
            this.VSlist.EndInit();
            this.VSListTheoHangHoa.EndInit();
            this.VSListTongHop.EndInit();
            this.ResumeLayout(false);
        }

        public void LoadDataTheoHangHoa()
        {
            this.Cursor = Cursors.WaitCursor;
            System.Data.DataTable dataTheoHangHoa = this.GetDataTheoHangHoa();
            C1.Win.C1FlexGrid.C1FlexGrid vSListTheoHangHoa = this.VSListTheoHangHoa;
            vSListTheoHangHoa.Rows.Count = 1;
            int num2 = dataTheoHangHoa.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSListTheoHangHoa.AddItem("");
                vSListTheoHangHoa[i + 1, 0] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["KhachHang"]);
                vSListTheoHangHoa[i + 1, 1] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["MaHang"]);
                vSListTheoHangHoa[i + 1, 2] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TenHang"]);
                vSListTheoHangHoa[i + 1, 3] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["LoaiTien"]);
                vSListTheoHangHoa[i + 1, 4] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["SoLuong"]);
                vSListTheoHangHoa[i + 1, 5] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TienHang"]);
                vSListTheoHangHoa[i + 1, 6] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["ChietKhau"]);
                vSListTheoHangHoa[i + 1, 7] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["HoaHong"]);
                vSListTheoHangHoa[i + 1, 8] = Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(dataTheoHangHoa.Rows[i]["TienHang"], Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["ChietKhau"]), 0, modGeneral.TypeOfValue.Nothing))), Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["HoaHong"]), 0, modGeneral.TypeOfValue.Nothing)));
                vSListTheoHangHoa[i + 1, 9] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TyGia"]);
                vSListTheoHangHoa[i + 1, 10] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListTheoHangHoa[i + 1, 9]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListTheoHangHoa[i + 1, 8]), 0, modGeneral.TypeOfValue.Nothing));
            }
            this.TxtTongThanhToanNT.Value = LVYModule.SumColGrid(this.VSListTheoHangHoa, 10);
            vSListTheoHangHoa.Cols[0].Visible = false;
            vSListTheoHangHoa.Tree.Column = 2;
            vSListTheoHangHoa.Subtotal(AggregateEnum.Sum, 0, 0, 0, 10, "{0}");
            vSListTheoHangHoa = null;
            this.Cursor = Cursors.Default;
        }

        public void LoadDataTheoHoaDon()
        {
            this.Cursor = Cursors.WaitCursor;
            System.Data.DataTable dataTheoHoaDon = (System.Data.DataTable) this.GetDataTheoHoaDon("VIET");
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Rows.Count = 1;
            int num2 = dataTheoHoaDon.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSlist.AddItem("");
                vSlist[i + 1, 0] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["KhachHang"]);
                vSlist[i + 1, 1] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["Ngay"]);
                vSlist[i + 1, 2] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["SoChungTu"]);
                vSlist[i + 1, 3] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["SoHoaDon"]);
                vSlist[i + 1, 4] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["KinhDoanh"]);
                vSlist[i + 1, 5] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["LoaiTien"]);
                vSlist[i + 1, 6] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["TienHang"]);
                vSlist[i + 1, 7] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["ChietKhau"]);
                vSlist[i + 1, 8] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["TienThue"]);
                vSlist[i + 1, 8] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["TienThue"]);
                vSlist[i + 1, 9] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["HoaHong"]);
                vSlist[i + 1, 10] = Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(dataTheoHoaDon.Rows[i]["TienHang"], Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["ChietKhau"]), 0, modGeneral.TypeOfValue.Nothing))), Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["HoaHong"]), 0, modGeneral.TypeOfValue.Nothing)));
                vSlist[i + 1, 11] = RuntimeHelpers.GetObjectValue(dataTheoHoaDon.Rows[i]["TyGia"]);
                vSlist[i + 1, 12] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[i + 1, 10]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[i + 1, 11]), 0, modGeneral.TypeOfValue.Nothing));
            }
            this.TxtTongThanhToanNT.Value = LVYModule.SumColGrid(this.VSlist, 12);
            vSlist.Cols[0].Visible = false;
            vSlist.Tree.Column = 4;
            vSlist.Subtotal(AggregateEnum.Sum, 0, 0, 0, 12, "{0}");
            vSlist = null;
            this.Cursor = Cursors.Default;
        }

        public void LoadDataTongHop()
        {
            this.Cursor = Cursors.WaitCursor;
            System.Data.DataTable dataTheoHangHoa = this.GetDataTheoHangHoa();
            C1.Win.C1FlexGrid.C1FlexGrid vSListTongHop = this.VSListTongHop;
            vSListTongHop.Rows.Count = 1;
            int num2 = dataTheoHangHoa.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSListTongHop.AddItem("");
                vSListTongHop[i + 1, 0] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["MaKhach"]);
                vSListTongHop[i + 1, 1] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TenKhach"]);
                vSListTongHop[i + 1, 2] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["SoLuongHoaDon"]);
                vSListTongHop[i + 1, 3] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TienHang"]);
                vSListTongHop[i + 1, 4] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["ChietKhau"]);
                vSListTongHop[i + 1, 5] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["HoaHong"]);
                vSListTongHop[i + 1, 6] = RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TraHang"]);
                vSListTongHop[i + 1, 7] = Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(dataTheoHangHoa.Rows[i]["TienHang"], Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["ChietKhau"]), 0, modGeneral.TypeOfValue.Nothing))), Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["HoaHong"]), 0, modGeneral.TypeOfValue.Nothing))), Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(dataTheoHangHoa.Rows[i]["TraHang"]), 0, modGeneral.TypeOfValue.Nothing)));
            }
            this.TxtTongThanhToanNT.Value = LVYModule.SumColGrid(this.VSListTongHop, 7);
            vSListTongHop = null;
            this.Cursor = Cursors.Default;
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual ADVObjects AdvNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVien = value;
            }
        }

        internal virtual ComboBox CboHienThi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboHienThi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboHienThi_SelectedIndexChanged);
                if (this._CboHienThi != null)
                {
                    this._CboHienThi.SelectedIndexChanged -= handler;
                }
                this._CboHienThi = value;
                if (this._CboHienThi != null)
                {
                    this._CboHienThi.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTien = value;
            }
        }

        internal virtual System.Windows.Forms.Button CmdExel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExel_Click);
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click -= handler;
                }
                this._CmdExel = value;
                if (this._CmdExel != null)
                {
                    this._CmdExel.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Button CmdLoad
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdLoad;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdLoad_Click);
                if (this._CmdLoad != null)
                {
                    this._CmdLoad.Click -= handler;
                }
                this._CmdLoad = value;
                if (this._CmdLoad != null)
                {
                    this._CmdLoad.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual System.Windows.Forms.Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual Panel Panel3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel3 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual C1NumericEdit TxtTongThanhToanNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongThanhToanNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongThanhToanNT = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSlist = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListTheoHangHoa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListTheoHangHoa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSListTheoHangHoa = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListTongHop
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListTongHop;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSListTongHop = value;
            }
        }
    }
}

